package com.syh.jn.scm.service.api.downstream.system;

import com.syh.jn.scm.dto.downstream.system.downAccount.DownAccountMto;
import com.syh.jn.scm.dto.downstream.system.downAccount.DownAccountSto;
import com.syh.jn.scm.dto.downstream.system.downAccount.DownAccountVo;
import com.syh.jn.scm.service.core.BaseService;

public interface DownAccountService extends BaseService<DownAccountSto, DownAccountMto, DownAccountVo, Long> {

	public void changeEable(Long accountId, Short enable);

	public void setRole(Long accountId, Long roldId);

	public DownAccountVo verifyAccountPassword(String loginAccount, String password);

	public void updataPassword(String loginAccount, String oldPassword, String newPassword) throws Exception;

	/**
	 * 是否是管理员
	 *
	 * @param id
	 * @return
	 */
	public boolean identityAdmin(Long id);

    void bindingLoginPhone(Long accountId, Long id);

    void untyingLoginPhone(Long id);
}
